package uk.ac.lkl.lpp.model.ldo.event;



import java.util.EventObject;

import uk.ac.lkl.lpp.model.PedagogyPlanModel;



/**
 * The base class for PedagogyPlan events.
 * 
 * @author Darren Pearce
 * @version $Revision: 353 $
 * @version $Date: 2007-10-30 13:18:52 +0000 (Tue, 30 Oct 2007) $
 * 
 */
public abstract class PedagogyPlanEvent extends EventObject {

    /**
     * Create a new instance with the given plan as event source.
     * 
     * @param plan
     *            the plan
     * 
     */
    public PedagogyPlanEvent(PedagogyPlanModel plan) {
        super(plan);
    }


    /**
     * Get the plan.
     * 
     * This is a convenience method that does a cast on getSource().
     * 
     * @return the plan
     * 
     */
    public PedagogyPlanModel getPlan() {
        return (PedagogyPlanModel) getSource();
    }

}
